![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@zendeskgarden/container-selection
Advanced tools
Containers relating to selection in the Garden Design System
This package includes containers relating to selection in the Garden Design System.
npm install @zendeskgarden/container-selection
Check out storybook for live examples.
The useSelection
hook which manages an items focus state including keyboard controls,
aria attributes and RTL support. It uses the
roving tab index strategy.
import { useSelection } from '@zendeskgarden/container-selection';
const values = ['Value 1', 'Value 2', 'Value 3'];
const Selection = ({ direction }) => {
const { focusedValue, selectedValue, getGroupProps, getElementProps } = useSelection({
values,
direction
});
return (
<ul {...getGroupProps()}>
{values.map(value => {
const isSelected = selectedValue === value;
const isFocused = focusedValue === value;
return (
<li {...getElementProps({ key: value, value })}>
{value}
{isSelected && <div>[Selected]</div>}
{isFocused && <div>(Focused)</div>}
</li>
);
})}
</ul>
);
};
import { SelectionContainer } from '@zendeskgarden/container-selection';
const values = ['Value 1', 'Value 2', 'Value 3'];
<SelectionContainer direction="vertical" values={values}>
{({ selectedValue, focusedValue, getGroupProps, getElementProps }) => (
<ul {...getGroupProps()}>
{values.map(value => {
const isSelected = value === selectedValue;
const isFocused = value === focusedValue;
return (
<li {...getElementProps({ key: value, value })}>
{item}
{isSelected && <span> - Selected</span>}
{isFocused && <span> - Focused</span>}
</li>
);
})}
</ul>
)}
</SelectionContainer>;
FAQs
Containers relating to selection in the Garden Design System
The npm package @zendeskgarden/container-selection receives a total of 20,724 weekly downloads. As such, @zendeskgarden/container-selection popularity was classified as popular.
We found that @zendeskgarden/container-selection demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.